import request from '@/utils/request'

// 查询志愿者队伍列表
export function listTeam() {
  return request({
    url: '/system/team/list',
    method: 'get'
  })
}

// 查询志愿者队伍详细
export function getTeam(pkId) {
  return request({
    url: '/system/team/' + pkId,
    method: 'get'
  })
}

// 新增志愿者队伍
export function addTeam(data) {
  return request({
    url: '/system/team',
    method: 'post',
    data: data
  })
}

// 修改志愿者队伍
export function updateTeam(data) {
  return request({
    url: '/system/team',
    method: 'put',
    data: data
  })
}

// 删除志愿者队伍
export function delTeam(pkId) {
  return request({
    url: '/system/team/' + pkId,
    method: 'delete'
  })
}

// 查询志愿者队伍列表--分页
export function getTeamPage(query) {
  return request({
    url: '/system/team/page',
    method: 'get',
    params: query
  })
}

//站点查询 system/team/site
export function getSite() {
  return request({
    url: '/system/dept/site/leaf/site',
    method: 'get'
  })
}
